//引用vue
import Vue from 'vue'
//引用vuex插件
import Vuex from 'vuex'
import actions from './actions.js'
import getters from './getters.js'
import mutations from './mutations.js'
//引用核心属性的js
import state from './state.js'
//vue调用vuex插件
Vue.use(Vuex)

//实例化仓库并导出
export default new Vuex.Store({
    state,
    mutations,
    actions,
    getters,
})